package studio.raptor.ddal.core.engine.plan.node.impl.execute;

import studio.raptor.ddal.core.engine.ProcessContext;
import studio.raptor.ddal.core.engine.plan.node.ProcessNode;
import studio.raptor.ddal.core.executor.ExecutionEngine;
import studio.raptor.ddal.core.monitor.Monitor;

/**
 * Created by liujy on 2017/10/11.
 */
public class ExecuteIUDBatch extends ProcessNode {

    private static final ExecutionEngine executionEngine = new ExecutionEngine();

    @Override
    protected void execute(ProcessContext context) {
        Monitor.countProcDml();
        Monitor.procDmlTpsMark();
        executionEngine.executeIUDBatch(context.getShardBackendConnWrapper(), context.getStatementContext().getCurrentExecutionGroup(),context.getStatementContext());
    }
}
